/*
  js-cookie是对原生cookie操作的封装, 原本复杂的存取操作就变得非常简单
  存: Cookies.set(key, value)
  取: Cookies.get(key)
  删: Cookies.remove(key)
*/
import Cookies from 'js-cookie'

const TokenKey = 'hmsass-token-99'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
